
"use client"
import React from 'react';
import {useFormState} from 'react-dom';
import {addStudent} from '@/util/actions/studentAction'


function page() {
    const[message,formAction]=useFormState(addStudent,null)
    return(
        <form action={formAction}>
            <input type="number"name="id"/>
            <input type="text"name="name"/>
          
            <button type="submit">提交</button>
            {/* {<SubmitButton/>} */}
            </form>
    )
}
export default page;